package com.example.cloud.dao.mongdb.basic.config;

import com.example.cloud.model.statistics.CreditItems;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by sl on 20189/4/24.
 */
@Repository
public interface MongoCreditItemsRepository extends MongoRepository<CreditItems, Long> {
    int deleteByIdIn(List<Long> ids);
    List<CreditItems> findByAccountIdAndOrganIdAndDeleteFlag(Long accountId, Long organId, int deleteFlag);
    List<CreditItems> findByAccountIdAndOrganIdAndCreditTypeAndDeleteFlag(Long accountId, Long organId, int creditType,
        int deleteFlag);
}
